﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace MangaEplision
{
    /// <summary>
    /// Interaction logic for UpdateMangaCatalogWin.xaml
    /// </summary>
    public partial class UpdateMangaCatalogWin : Window
    {
        public UpdateMangaCatalogWin(int max)
        {
            InitializeComponent();
            progressBar1.Maximum = max;
            label2.Content = "0/" + max;
        }
        public void Update(string status,int number)
        {
            label1.Content = status;
            progressBar1.Value = number;
            label2.Content = number + "/" + progressBar1.Maximum;
        }
    }
}
